 
<script setup lang="ts">
	import print from '@/hooks/print/printSetting'
	import { ref } from 'vue'
	const click = () => {
		const command = print.command //执行打印指令 
		command.init()
		command.setSize(48, 40)
		command.setGap(0)
		command.setCls()
		command.setText(0, 20, "TSS24.BF2", 0, 1, 1, `订单号:123132132132`)
		command.setText(0, 55, "TSS24.BF2", 0, 1, 1, `类型:食品`)
		command.setText(0, 85, "TSS24.BF2", 0, 1, 1, `名称:辣条`)
		command.setText(0, 115, "TSS24.BF2",0, 1, 1, "等级:A级")
		// command.setText(120, 135, "TSS24.BF2",0, 1, 1, "规格:20束/扎 长度40CM")
		command.setText(120, 115, "TSS24.BF2",0, 1, 1, `数量:100包`)
		command.setText(0, 145, "TSS24.BF2",0, 1, 1, `颜色:黑色`)
		command.setQrcode(300, 145, "L", 3.5, "A", "收货地址:浙江省宁波市鄞州区")
		command.setText(0, 175, "TSS24.BF2",0, 1, 1, `供应商:辣条供应商`)
		command.setText(0, 205, "TSS24.BF2",0, 1, 1, "包装:普通包装")
		command.setText(0, 235, "TSS24.BF2",0, 1, 1, `入库时间:2023-6-21`)  
		command.setPagePrint()
		print.print.send(command.getData())
	}
</script>


<template>
	<view>
		<button hover-class="button-hover" @click="click">
			打印
		</button>
	</view>
</template>


<style lang="scss" scoped></style>